package com.tjh.springbootapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tjh.springbootapi.enums.StateEnum;

import java.io.Serializable;

/**
 * Generated on 2020-03-22
 */
public class Sysuser implements Serializable {

    // UUID - varchar(32)
    @TableId(value = "ID", type = IdType.UUID)
    private String id;

    // 登录账号 - varchar(32)
    @TableField("USER_NAME")
    private String userName;

    // 登录密码 - varchar(32)
    @TableField("PASS_WORD")
    private String passWord;

    // 数据状态（0-启用；1-禁用） - decimal(1,0)
    @TableField("STATE")
    private StateEnum state;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public StateEnum getState() {
        return state;
    }

    public void setState(StateEnum state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Sysuser{" +
                "id=" + id +
                ", userNane=" + userName +
                ", passWord=" + passWord +
                ", state=" + state +
                "}";
    }
}








